<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>文章 - 后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="/admin/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/admin/css/style.css">
    <link rel="stylesheet" type="text/css" href="/admin/css/font-awesome.min.css">
    <link rel="apple-touch-icon-precomposed" href="/admin/images/icon/icon.png">
    <link rel="shortcut icon" href="/admin/images/icon/favicon.ico">
    <script src="/admin/js/jquery-2.1.4.min.js"></script>
    <script src="/layer/layer.js"></script>
    <script>
        $(function () {
            // $('#header').load('head.html');
            // $('#footer').load('/back/page');
        });

        function del(id) {
            layer.confirm('您确定要删除？', {
                btn: ['是', '否'], //按钮
                icon: 2
            }, function () {
                layer.msg('删除成功', {icon: 1});
                location.href = "/back/user/delete?id=" + id;
            });

        }

        function findPage(pageNo) {
            $("#pageNo").val(pageNo);
            $("#fm1").submit();
        }
    </script>
</head>
<body class="user-select" style="margin: 0px;padding: 0px;">
<div>
    <ul class="breadcrumb" style="margin: 0px;">
        <li>系统设置</li>
        <li>用户管理</li>
    </ul>
</div>
<form id="fm1" action="/back/user/index" method="post" class="form-inline">
    <div class="row alert alert-info">
        <div class="form-group">
            <input type="text" id="userName" name="userName" class="form-control" placeholder="请输入姓名"
                   value="${(userInfo.userName)!}"/>
            <input type="hidden" id="pageNo" name="pageNo"/>
            <input type="submit" value="查询" class="btn btn-info "/>
            <a href="/back/user/loadAdd" class="btn btn-info">添加用户</a>
        </div>
    </div>
    <div class="table-responsive">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>姓 名</th>
                <th>电话号码</th>
                <th>用户账号</th>
                <th>用户密码</th>
                <th>操 作</th>
            </tr>
            </thead>
            <tbody>
               <#list (pageBean.list)! as user>
               <tr>
                   <td>${(user.userName)!}</td>
                   <td>${(user.userPhone)!}</td>
                   <td>${(user.userAccount)!}</td>
                   <td>${(user.userPassword)!}</td>

                   <td><a href="/back/user/loadUpdate?id=${(user.id)!}">修改</a> <a href="javaScript:void (0)"
                                                                                  onclick="del('${(user.id)!}')"
                                                                                  rel="6">删除</a></td>
               </tr>
               </#list>

            </tbody>
        </table>
    </div>
    <footer class="message_footer">
    <#--分页-->
    ${pageBean}
    </footer>
</form>
<script src="/admin/js/bootstrap.min.js"></script>
<script src="/admin/js/admin-scripts.js"></script>
</body>
</html>
